<div style="float:right;height:30px">

</div>
<!-----------------filter form ----------------------------------->
<form action="<?= $admin_base_url; ?>order/index/" method="post">

</form>
<table class="tbllist">
<tbody>
<tr>
<th class="tbslno">Sl.No</th>
<th class="tbslno">Order number</th>

<th class="tbname">Total Amount</th>
<th class="tbname">Date</th>
<th class="tbname">Status</th>



<th class="tbaction">Action</th>
</tr>
<?php 
if(!empty($orders)) 
{
	foreach($orders as $key => $record) 
	{
		$style = (++$key%2) ? '' : 'alt'; 
?>	
	<tr class="<?php echo $style;?>">
		<td><?= ($cur_page + $key);?></td>
        <td><?php echo $record['order_id']?></td>
		<td><?php echo $record['total_amount']?></td>
       
        <td><?php echo $record['created']?></td>
    
         <td><?php echo $record['status']?></td>
		<td>
                 <a rel="facebox" href="<?php echo $admin_base_url;?>orders/view/<?php echo $record['order_id'];?>/<?php echo $cur_page;?>" >
        <img border="0" src="<?php echo $admin_image_path;?>view1.png" alt="" title="View" width="19" height="19"/></a>
		
        <a href="<?php echo $admin_base_url;?>orders/cancell/<?php echo $record['order_id'];?>/<?php echo $cur_page;?>" onclick="return confirm('Do you want to cancel this order?');">
        <img border="0" src="<?php echo $admin_image_path;?>cancel.jpg" alt="" title="Cancel" width="16" height="16"/></a>
        <a href="<?php echo $admin_base_url;?>orders/success/<?php echo $record['order_id'];?>/<?php echo $cur_page;?>"><img border="0" src="<?php echo $admin_image_path;?>success.jpg" alt="" title="Success" width="16" height="16"/>
          </a>
		</td>
	</tr>
<?php 
	}
} else {
?>
<tr><td colspan="6">No orders available</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>